package com.bestcem.xm.user.entity.mongo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * mongo实体基类
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2021/12/29 10:58
 */
@ToString(callSuper = true)
@Getter
@Setter
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 5123974052137763147L;

    /**
     * 主键id
     */
    protected String id;

    /**
     * 创建时间
     */
    protected Date createdTime;

    /**
     * 创建用户id
     */
    protected String creatorId;

    /**
     * 更新时间
     */
    protected Date updatedTime;

    /**
     * 更新用户id
     */
    protected String operatorId;

}
